home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / C⁄C++ / Kant Generator Pro 1.2 / src / kode ƒ / kant.c < prev    next >
C/C++ Source or Header  |  1995-02-02  |  586b  |  33 lines

  1. #include "kant.h"
  2. #include "graphics.h"
  3. #include "window layer.h"
  4.  
  5. Boolean            gAlwaysResolve;
  6. short            gSpeedDelay;
  7. FSSpec            gModuleFS;
  8. Boolean            gUseDefault;
  9. Boolean            gDynamicScroll;
  10. Boolean            gShowAllRefs;
  11. Boolean            gIconifyMenus;
  12. Boolean            gShowToolbar;
  13. Boolean            gShowMessageBox;
  14.  
  15. void InitTheProgram(void)
  16. {
  17. }
  18.  
  19. Boolean ShutDownTheProgram(void)
  20. {
  21.     WindowPtr        theWindow;
  22.     
  23.     while ((theWindow=GetFrontDocumentWindow())!=0L)
  24.         if (!CloseTheWindow(theWindow))
  25.             return FALSE;
  26.     
  27.     while ((theWindow=FrontWindow())!=0L)
  28.         if (!CloseTheWindow(theWindow))
  29.             return FALSE;
  30.     
  31.     return TRUE;
  32. }
  33.